#include <stdio.h>
int main(int argc , const char *argv[])
{
    //位运算与逻辑运算符比较
   unsigned char a=123,b=45,ret;
   //a=0111 1011
   //b=0010 1101
   ret=a<<2;
   printf("%d\n",ret);
   printf("%d\n",a&&b);
   printf("%d\n",a||b);
   printf("%d\n",!(a||b));
   printf("%d\n",~(a||b));
   printf("%d\n",a&b);
   printf("%d\n",a|b);
   printf("%d\n",a^b);
   printf("%d\n",~a);
   printf("%d\n",~b);
   printf("%d\n",a>>2);
   printf("%d\n",a<<2);//0000 0000 0000 0000 0000 0000 0111 1011 << 2 == 0000 0001 1110 1100



return 0;
}